﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EasyStep.Business.Interfaces;
using EasyStep.Business.Providers;
using EasyStep.Data.Entities;
using EasyStep.Business.Interfaces.Providers;
using System.IO;

namespace EasyStep.Business.Managers
{
    public class TestInfoManager : BaseDataManager<ITestInfoProvider, TestInfo>, ITestInfoManager
    {
        public TestInfoManager(ITestInfoProvider provider)
            : base(provider)
        {

        }

        public TestInfo Get(Guid id)
        {
            return Provider.Get(id); 
        }


        public string Convert(TestInfo item)
        {
            return item == null ? null : item.Serialize();
        }

        public TestInfo Convert(StreamReader data)
        {
            throw new NotImplementedException();
            //return string.IsNullOrEmpty(data)? null : data.Deserialize<TestInfo>();
        }

        public IEnumerable<TestStep> Convert(string scenario)
        {
            throw new NotImplementedException();
        }

        

       public  TestInfo GetTest(string project,string name=null, bool withSteps=false)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<TestInfo> GetProjectTests(string projectName = null)
        {
            throw new NotImplementedException();
        }
    }
}